#!/usr/bin/env bash
#git clone
cp ../app/conf/config_laida.json ../app/conf/config.json
date=`date +%Y%m%d%H%M`
tar cvzf auth-server.${date}.tgz -C "../" app app.js package.json
ssh -i cuoyiba-game-laida ubuntu@111.230.42.17 "cd /data/app/auth-server; rm -rf auth-server*.tgz"
scp -i cuoyiba-game-laida auth-server.${date}.tgz ubuntu@111.230.42.17:/data/app/auth-server
